package com.dj.mingkong.portal.biz.repository.database.system;

import com.dj.mingkong.common.infrastructure.base.dto.query.QueryVo;
import com.dj.mingkong.common.infrastructure.base.repository.BaseDatabaseRepository;
import com.dj.mingkong.common.infrastructure.eo.database.system.RoleEo;
import com.dj.mingkong.portal.biz.repository.database.system.mapper.RoleMapper;
import org.springframework.stereotype.Repository;


/**
 * 角色repository
 *
 * @author zenglonghui
 * @date: 2022/5/18 11:02
 */
@Repository
public class RoleRepository extends BaseDatabaseRepository<RoleMapper, RoleEo, QueryVo> {
    public RoleEo oneByCode(String code) {
        return lambdaQuery().eq(RoleEo::getCode, code).one();
    }
}
